/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.entity;

import com.thinkgem.jeesite.modules.sys.entity.Office;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 修改上级Entity
 * @author jyangye
 * @version 2018-01-28
 */
public class ViChgSuper extends DataEntity<ViChgSuper> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工ID

	private String name;		// 姓名
	private String changeReason;		// 修改原因

	private Office comp;
	private Office dept;
	private Office post;

	private ViEmployee bSuper;
	private ViEmployee aSuper;
	
	public ViChgSuper() {
		super();
	}

	public ViChgSuper(String id){
		super(id);
	}

	@Length(min=0, max=32, message="员工ID长度必须介于 0 和 32 之间")
	@ExcelField(title="员工ID", align=2, sort=20)
	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}

    @ExcelField(title="组织机构", align=2, sort=30)
    public Office getComp() {
        return comp;
    }

    public void setComp(Office comp) {
        this.comp = comp;
    }

    @ExcelField(title="部门", align=2, sort=40)
    public Office getDept() {
        return dept;
    }

    public void setDept(Office dept) {
        this.dept = dept;
    }

    @ExcelField(title="职位", align=2, sort=50)
    public Office getPost() {
        return post;
    }

    public void setPost(Office post) {
        this.post = post;
    }

	
	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	@ExcelField(title="姓名", align=2, sort=60)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

    @ExcelField(title="原上级", align=2, sort=70)
    public ViEmployee getbSuper() {
        return bSuper;
    }

    public void setbSuper(ViEmployee bSuper) {
        this.bSuper = bSuper;
    }

    @ExcelField(title="现上级", align=2, sort=80)
    public ViEmployee getaSuper() {
        return aSuper;
    }

    public void setaSuper(ViEmployee aSuper) {
        this.aSuper = aSuper;
    }
	
	@Length(min=1, max=64, message="修改原因长度必须介于 1 和 64 之间")
	@ExcelField(title="修改原因", align=2, sort=90)
	public String getChangeReason() {
		return changeReason;
	}

	public void setChangeReason(String changeReason) {
		this.changeReason = changeReason;
	}
}